<template>
  <div>
    <h1>Parent</h1>
    <Child :count="count" :changeCount="changeCount" />
  </div>
</template>

<script>
import Child from "./Child";
export default {
  name: "Parent",
  components: {
    Child,
  },
  data() {
    return {
      count: 0,
    };
  },

  methods: {
    changeCount(val) {
      this.count += val;
    },
  },
};
</script>

<style>
</style>